package com.senthink.gl.business.area;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Area数据对象
 *
 * @author zooqi@senthink.com
 * @date 2017/11/23
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "Area数据对象")
@Data
public class AreaRequest {

    /**
     * 区域唯一id
     */
    @Size(min = 1, max = 255, message = "{area.aid.size}")
    @NotNull(message = "{area.aid.notBlank}", groups = {FindOneGroup.class, DeleteOneGroup.class, UpdateOneGroup.class})
    @ApiModelProperty(value = "区域唯一id")
    private String aid;

    /**
     * 区域名称
     */
    @Size(min = 1, max = 255, message = "{area.name.size}")
    @NotNull(message = "{area.name.notBlank}", groups = {SaveOneGroup.class, UpdateOneGroup.class})
    @ApiModelProperty(value = "区域名称")
    private String name;

    /**
     * 备注
     */
    @Size(min = 1, max = 255, message = "{area.remarks.size}")
    private String remarks;

    public interface FindOneGroup {
    }

    public interface SaveOneGroup {
    }

    public interface DeleteOneGroup {
    }

    public interface UpdateOneGroup {
    }
}
